package com.example.mybaiduweishi.activity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import com.example.mybaiduweishi.R;
import com.example.mybaiduweishi.activity.base.BaseActivity;
import com.example.mybaiduweishi.fragments.ShowContactsFragment;

import butterknife.BindView;
import butterknife.OnClick;

public class InsertContactsActivity extends BaseActivity {

    @BindView(R.id.edit_select_address)
    EditText editText;


    private ShowContactsFragment showContactsFragment = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        toolContactInsert.setTitle("");
//        setSupportActionBar(toolContactInsert);
        initData();
    }


    @Override
    public int getContentXML() {
        return R.layout.activity_insert_contacts;
    }

    @Override
    public void initData() {
        //由内容提供者查询联系人
        if (showContactsFragment == null) {
            showContactsFragment = new ShowContactsFragment();
            getFragmentManager().beginTransaction()
                    .replace(R.id.f1_show_contact, showContactsFragment)
                    .addToBackStack("mobile")
                    .commit();
        }
    }

    @Override
    public void initView() {

    }


    @OnClick(R.id.img_inser_back)
    public void onViewClicked() {
        finish();
    }
}

